//
//  TestViewController.swift
//  iTrackpad
//
//  Created by lbxia on 2021/9/17.
//

import UIKit

class TestViewController: UIViewController {

    var dismiss : (() -> Void)?
    
    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        
        if let _ = self.dismiss {
            self.view.backgroundColor = UIColor.clear
        }
    }

    @IBAction func test(_ sender: Any) {
        
        let vc = TestViewController(nibName: "TestViewController", bundle: nil)
        
        self.present(vc, animated: true, completion: nil)
    }
    
    @IBAction func test2(_ sender: Any) {
        
        self.dismiss(animated: true, completion: self.dismiss)
    }
    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.
        // Pass the selected object to the new view controller.
    }
    */

}
